#include<bits/stdc++.h>
using namespace std;
int main(){
	freopen("stairplus.in" , "r" , stdin);
	freopen("stairplus.out" , "w" , stdout);
	const int N = 1e5 + 10;
	int a[N] = {0};
	int n , m;
	cin >> m;
	a[1] = 1;
	a[2] = 2;
	for(int i = 3 ; i <= 100000 ; i = i + 1)
		a[i] = (a[i - 1] + a[i - 2]) % 998244353;
	for(int i = 1 ; i <= m ; i = i + 1){
		cin >> n;
		cout << a[n] << endl;
	} 
	return 0;
}